package com.ruoyi.infoCandidateScores.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.infoCandidateScores.mapper.InfoCandidateScoresMapper;
import com.ruoyi.infoCandidateScores.domain.InfoCandidateScores;
import com.ruoyi.infoCandidateScores.service.IInfoCandidateScoresService;

/**
 * (一分一段)Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-12
 */
@Service
public class InfoCandidateScoresServiceImpl implements IInfoCandidateScoresService 
{
    @Autowired
    private InfoCandidateScoresMapper infoCandidateScoresMapper;

    /**
     * 查询(一分一段)
     * 
     * @param id (一分一段)主键
     * @return (一分一段)
     */
    @Override
    public InfoCandidateScores selectInfoCandidateScoresById(Long id)
    {
        return infoCandidateScoresMapper.selectInfoCandidateScoresById(id);
    }

    /**
     * 查询(一分一段)列表
     * 
     * @param infoCandidateScores (一分一段)
     * @return (一分一段)
     */
    @Override
    public List<InfoCandidateScores> selectInfoCandidateScoresList(InfoCandidateScores infoCandidateScores)
    {
        return infoCandidateScoresMapper.selectInfoCandidateScoresList(infoCandidateScores);
    }

    /**
     * 新增(一分一段)
     * 
     * @param infoCandidateScores (一分一段)
     * @return 结果
     */
    @Override
    public int insertInfoCandidateScores(InfoCandidateScores infoCandidateScores)
    {
        return infoCandidateScoresMapper.insertInfoCandidateScores(infoCandidateScores);
    }

    /**
     * 修改(一分一段)
     * 
     * @param infoCandidateScores (一分一段)
     * @return 结果
     */
    @Override
    public int updateInfoCandidateScores(InfoCandidateScores infoCandidateScores)
    {
        return infoCandidateScoresMapper.updateInfoCandidateScores(infoCandidateScores);
    }

    /**
     * 批量删除(一分一段)
     * 
     * @param ids 需要删除的(一分一段)主键
     * @return 结果
     */
    @Override
    public int deleteInfoCandidateScoresByIds(Long[] ids)
    {
        return infoCandidateScoresMapper.deleteInfoCandidateScoresByIds(ids);
    }

    /**
     * 删除(一分一段)信息
     * 
     * @param id (一分一段)主键
     * @return 结果
     */
    @Override
    public int deleteInfoCandidateScoresById(Long id)
    {
        return infoCandidateScoresMapper.deleteInfoCandidateScoresById(id);
    }
}
